{% extends "main/base.html" %}
{% load static i18n %}
{% block title %}{% trans '更新资产类别' %}{% endblock %}
{% block this_css %}
<link type="text/css" href="{% static 'flatlab/css/bootstrap-select.min.css' %}" rel="stylesheet">
{% endblock %}
{% block content %}
<section class="row">
    <section class="col-lg-offset-2 col-lg-8">
        <section class="panel">
            <header class="panel-heading">
                <h4>{% trans "更新资产类别" %}</h4>
                {% if form.errors %}
                <p>{% trans "您提交的数据有误,请认真检查!" %}</p>
                {% endif %}
                {{ form.non_field_errors }}
            </header>
            <div class="panel-body">
                <form class="form-horizontal tasi-form" method="post">{% csrf_token %}
                    <div class="form-group">
                        <div class="col-lg-2">{{ form.fixed_assets_type.label_tag }}</div>
                        <div class="col-lg-10">{{ form.fixed_assets_type }}{{ form.fixed_assets_type.errors }}</div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-2">{{ form.notes.label_tag }}</div>
                        <div class="col-lg-10">{{ form.notes }}{{ form.notes.errors }}</div>
                    </div>
                    <div class="form-group col-md-12" align="right">
                        <button type="submit" class="btn btn-primary">{% trans "提交" %}</button>
                    </div>
                </form>
            </div>
        </section>
    </section>
</section>
{% endblock %}
{% block this_js %}
<script type="text/javascript" src="{% static 'flatlab/js/bootstrap-select.min.js' %}"></script>
<script type="text/javascript" src="{% static 'flatlab/js/bootstrap-switch.js' %}"></script>
{% endblock %}